package com.song.study.spring.Entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanPostProcessor;
import org.springframework.lang.Nullable;
import org.springframework.stereotype.Component;

/**
 * @Author ZhangGuisong
 * @Date 2021/4/24-19:21
 */
@Component
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Tiger implements BeanPostProcessor {
    private String name;
   public  Object postProcessBeforeInitialization(Object bean, String beanName) throws BeansException {
       System.out.println("postProcessBeforeInitialization-->"+beanName);
       return bean;
    }

    public Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException {
        System.out.println("postProcessAfterInitialization-->"+beanName);
       return bean;
    }
}
